home *** CD-ROM | disk | FTP | other *** search
- Path: newshub.csu.net!clstac!cdubose
- From: cdubose@csupomona.edu
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Is this a SAS/C bug or have I coded it wrong?
- Date: 15 Jan 96 21:46:11 PST
- Organization: California State Polytechnic University, Pomona
- Message-ID: <1996Jan15.214611@clstac>
- References: <4cfrc5$gsc@misery.millcomm.com>
- NNTP-Posting-Host: bronco.is.csupomona.edu
-
- In article <4cfrc5$gsc@misery.millcomm.com>, llucius@millcomm.com (Yambo) writes:
- > if ( tmpbuf[0] & 0x1f == 1 )
- > return 1;
- >
- > return 0;
-
- Like everybody else said, it should be:
- if ( (tmpbuf[0] & 0x1f) == 1 )
-
- But is this really what you want?
-
- That expression is equivalent to (tmpbuf[0] % 32 == 1).
-
- I suppose it is.
-
- > --
- > __ Y_ a_ m_ b_ o_ | The leanest, meanest, fightinest sweet tater on Earth!
- > oo o oo o o |
- > o o o | llucius@millcomm.com
- > o oo o o |
- > -- -- -- -- -- -- | http://www.millcomm.com/~llucius/index.html (coming soon)
-
- -- Chris DuBose, Cal Poly Pomona computer scientist, cdubose@csupomona.edu
- Fan of Queen, Moria, Star Trek, Seattle, Torey Hayden, and the Amiga
-